home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
gfx
/
fu1_62.lha
/
fu
/
Rexx
/
LensAnim.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-06-08
|
1KB
|
56 lines
/* FU Arexxtester */
options results
ADDRESS REXX_FU
say '
FU-ArexxAnim
';say;
SetIter '50';
if RC~=0 then call AppError('SetIter',RC);
x1=-2.5;y1=-1.5;x2=1.0;y2=1.5
SetZoom x1 y1 x2 y2;
if RC~=0 then call AppError('SetZoom',RC);
xl=1.0;yl=0.5
xlstep=-0.1;ylstep=-0.05
frames=30
do i=0 to frames
name='misc:LENS1.'right(i,3,'0');
say 'Working on : ' name;
say 'Lens Position : ' xl yl;
SetParam '1' xl yl;
if RC~=0 then call AppError('SetParam',RC);
RenderPicture;
if RC~=0 then call AppError('RenderPicture',RC);
SavePicture name '2'
if RC~=0 then call AppError('SavePicture',RC);
xl=xl+xlstep;
yl=yl+ylstep;
end
ActivateFU;
if RC~=0 then call AppError('ActivateFU',RC);
exit
AppError:procedure
cmd=arg(1);
ret=arg(2);
say '
Application Error
';say;
say 'Command 'cmd' failed with Returncode 'ret;
select
when ret='1' then say ' => unknown command';
when ret='2' then say ' => unknown parameter';
otherwise say ' => unknown returncode';
end
say;
return